package com.sias.reflection.class_;

import java.lang.annotation.Target;
import java.util.Set;

/**
 * @author 吴文杰
 * @version 1.0
 * @createTime 2023-05-02 14:10:59
 *
 * 哪些类型有Class对象
 */
@SuppressWarnings("all")
public class AllTypeClass {
  public static void main(String[] args) {
    Class<String> cls1 = String.class; //外部类
    Class<Set> cls2 = Set.class;//接口
    Class<Integer[]> cls3 = Integer[].class;//数组
    Class<float[][]> cls4 = float[][].class;//二维数组
    Class<Target> cls5 = Target.class;//注解
    Class<Thread.State> cls6 = Thread.State.class;//枚举
    Class<Long> cls7 = long.class;//基本数据类型
    Class<Void> cls8 = void.class;//返回类型
    Class<Class> cls9 = Class.class;


    System.out.println(cls1);
    System.out.println(cls2);
    System.out.println(cls3);
    System.out.println(cls4);
    System.out.println(cls5);
    System.out.println(cls6);
    System.out.println(cls7);
    System.out.println(cls8);
    System.out.println(cls9);
  }
}
